package com.tuananh.radnom.model.protocol.service;

import java.util.ArrayList;
import java.util.HashMap;

import javax.xml.bind.annotation.XmlAttribute;

public abstract class ActiveDiscover extends AbstractDiscover {
	long interval = 0;

	@XmlAttribute
	public long getInterval() {
		if (interval <= 0)
			interval = 1800;
		return interval;
	}

	public void setInterval(long interval) {
		this.interval = interval;
	}

	long timeout = 60;

	@XmlAttribute
	public long getTimeout() {
		if (timeout == 0) {
			timeout = 60;
		}
		return timeout;
	}

	public void setTimeout(long timeout) {
		this.timeout = timeout;
	}
}
